﻿using System;
using System.Collections.Generic;
using System.Data;

namespace smp.QueryDb
{
    public interface IRawResult : IEnumerable<IRawResultItem>
    {
        IRawResultItem this[int index] { get; }

        int Count { get; }

        int TotalRecords { get; }

        bool Contains(IRawResult item);

        IEnumerable<string> Fields { get; }

        void Add(IDataRecord record);
    }

    public interface IRawResultItem
    {
        bool Equals(IRawResultItem item);

        object Value(string fieldName);
    }
}
